package com.tlxch.controller.student;

import com.tlxch.dto.TAssessStudto;
import com.tlxch.result.Result;
import com.tlxch.server.student.StuTAssessService;
import com.tlxch.vo.TAssessvovo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/student/tassess")
@Api(tags="评估相关接口")
@Slf4j
public class StuTAssessController {
    @Autowired
    StuTAssessService stuTAssessService;

    @GetMapping("/getTAssess")
    @ApiOperation("获取评估")
    public Result<List<TAssessvovo>> getTAssess(TAssessStudto tAssessStudto){
        List<TAssessvovo> list = stuTAssessService.getTAssess(tAssessStudto);
        return Result.success(list);
    }
}
